<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
    <style type="text/css">
        p {
            background-color: red;
            height: 500px;
            width: 30%;
            padding: 20px;
            margin: 20px;
            float: left;
        }

        div {
            background-color: green;
            height: 50px;
            width: 40%;
            padding: 20px;
            margin: 20px;
        }

        span {
            background-color: gray;
            height: 70px;
            padding: 40px;
            margin: 20px;
            float: left;
            width: 200px;
        }

        strong {
            background-color: blue;
            height: 70px;
            padding: 40px;
            margin: 20px;
        }
    </style>
</head>
<body>
<!--<p>块级元素一</p>-->
<div>块级元素一</div>
<span>行内元素一</span>
<strong>行内元素二</strong>
</body>
</html>
